package com.jluzh.intercetor;

import javax.annotation.Priority;
import javax.ws.rs.Priorities;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.ContainerResponseFilter;
import java.io.IOException;

/**
 * @author EvanHuang
 * @date 11/6/2018 9:10 AM
 * @since
 * Priority的使用， 执行顺序ResponseFilter1 -》 ResponseFilter2
 */
@Priority(Priorities.HEADER_DECORATOR+1)
public class ResponseFilter2 implements ContainerResponseFilter {
    @Override
    public void filter(ContainerRequestContext containerRequestContext, ContainerResponseContext containerResponseContext) throws IOException {

    }
}
